package com.sunlee.admin.api.module.security.outh2;

import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * token
 *
 * @author sunlee
 */
@Data
public class Oauth2Token implements AuthenticationToken {

    private String token;

    public Oauth2Token(String token) {
        this.token = token;
    }

    @Override
    public String getPrincipal() {
        return getToken();
    }

    @Override
    public Object getCredentials() {
        return getToken();
    }
}
